package com.techysky.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 数据模型
 * @author zhangxu
 *
 */
@Entity
@Table(name="sys_data_model")
@Data@EqualsAndHashCode(callSuper=false)
public class DataModule implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id@GeneratedValue(generator="system-uuid")
	@GenericGenerator(name="system-uuid",strategy="uuid")
	private String id;
	//所有实体编码
	@Column(name="code")
	private String code;
	@Column(name="title")
	private String title;
	@Column(name="applic")
	private String applic;
	@Column(name="brex_dm")
	private String brexDm;
	@Column(name="dm_code")
	private String dmCode;
	@Column(name="model_ident_code")
	private String modelIdentCode;
	@Column(name="system_code")
	private String systemCode;
	@Column(name="sub_system_code")
	private String subSystemCode;
	@Column(name="sub_sub_system_code")
	private String subSubSystemCode;
	@Column(name="assy_code")
	private String assyCode;
	@Column(name="info_code")
	private String infoCode;
	@Column(name="language")
	private String language;
	@Column(name="dm_title")
	private String dmTitle;
	//版本类型
	@Column(name="ver_type")
	private String verType;
	//版本号
	@Column(name="ver_no")
	private String verNo;
	@Column(name="url")
	public String url;
	@Column(name="public_module_id")
	private String publicModuleId;
	@Column(name="pm_code")
	private String pmCode;
	@Transient
	private Integer page;
	@Transient
	private Integer size;
	@Transient
	private String selectType;
	@Transient
	private String searchWords;
	@Transient
	private String searchType;
	@Lob
	@Column(name="content")
	private String content;
	@Column(name="fit_name")
	private String fitName;
	@Column(name = "state")
	private String state;//
	@Column(name="project_id")
	private String projectId;

}
